package com.domespringcloudprobider8082.controller;

import com.domespringcloudapi.entity.ThemeEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class themecontroller {

    @GetMapping(path = "themeget")
    public List<ThemeEntity> Themeget(){
        List<ThemeEntity> list=new ArrayList<ThemeEntity>();
        list.add(new ThemeEntity(1001,"军事"));
        list.add(new ThemeEntity(1002,"股市"));
        list.add(new ThemeEntity(1003,"金融"));
        return  list;
    }
}
